<%=render :partial => "/frame_top" %>
<h1><%=t "login.title" %></h1>
<p><%=t "login.description" %></p>
<div id="login_left_frame">
	<% if flash[:error] %>
		<div class="error_div"><%=t "login.error" %><%= flash[:error]%></div>
	<% end %>
<% form_tag session_path do -%>
	<p><%= label_tag 'email' %><br />
	<%= text_field_tag 'login', @login %></p>
	
	<p><%= label_tag 'password' %><br/>
	<%= password_field_tag 'password', nil %></p>
	
	<p><%= label_tag I18n.t('login.remember_me'), 'Remember me' %>
	<%= check_box_tag 'remember_me', '0', @remember_me %></p>
	
	<%= link_to I18n.t('login.forgot_password') + "?", forgot_password_url %>
	
	<p><%= submit_tag 'Login' %></p>
<% end -%>
	<div>
		<%=t "login.dont_have_an_account" %>
		<a href="/signup"><%=t "login.register_now" %></a> 
	</div>
</div>
<div id="login_right_frame">
	<p><%= label_tag I18n.t "login.or_login_with_facebook" %></p><br />
	<%= fb_login_button("window.location = '/users/link_user_accounts';") %>	
</div>
<div class="separator"><span></span></div>

<%=render :partial => "/frame_bottom" %>